import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'//首页
import UserCenter from '@/views/UserCenter.vue'//个人信息维护页面
import LoveReport from '@/views/LoveReport.vue'//爱心报表页面
import LoveActs from '@/views/LoveActs.vue'//活动列表页面
import UploadService from '@/views/UploadService.vue'//服务记录上传页面
import MyApply from '@/views/MyApply.vue'//我的报名页面
import ActDetaile from '@/views/ActDetaile.vue'//活动详情页面
import ServiceDetail from '@/views/ServiceDetail.vue'//服务详情页面
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/UserCenter',
      name: 'UserCenter',
      
      component:UserCenter,
    },
    {
      path: '/LoveReport',
     
      
      component:()=>import('@/views/LoveReport.vue'),
    },
    {
      path: '/LoveActs',
     
      
      component:()=>import('@/views/LoveActs.vue'),
    },
    {
      path: '/UploadService',
     
      
      component:()=>import('@/views/UploadService.vue'),
    },
    {
      path: '/MyApply',
     
      
      component:()=>import('@/views/MyApply.vue'),
    },
    {
      path: '/ActDetaile',
     
      
      component:()=>import('@/views/ActDetaile.vue'),
    },
    {
      path: '/ServiceDetail',
     
      
      component:()=>import('@/views/ServiceDetail.vue'),
    },
  
  
  ],
})

export default router
